package org.jeecg.modules.purchase.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 入库记录
 * @Author: jeecg-boot
 * @Date:   2022-11-16
 * @Version: V1.0
 */
@ApiModel(value="purchase_stock_in对象", description="入库记录")
@Data
@TableName("purchase_stock_in")
public class PurchaseStockIn implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主健ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主健ID")
    private String id;
	/**入库单编码*/
	@Excel(name = "入库单编码", width = 15)
    @ApiModelProperty(value = "入库单编码")
    private String code;
	/**关联采购订单*/
	@Excel(name = "关联采购订单", width = 15)
    @ApiModelProperty(value = "关联采购订单")
    private String orderCode;
	/**入库仓库*/
	@Excel(name = "入库仓库", width = 15)
    @ApiModelProperty(value = "入库仓库")
    private String repositoryName;
    /**入库仓库编码*/
//    @Excel(name = "入库仓库编码", width = 15)
    @ApiModelProperty(value = "入库仓库编码")
    private String repositoryCode;
	/**入库人*/
	@Excel(name = "入库人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "入库人")
    private String inPeople;
	/**到货日期*/
	@Excel(name = "到货日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "到货日期")
    private Date deliveryTime;
	/**入库日期*/
	@Excel(name = "入库日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入库日期")
    private Date inTime;
	/**附件*/
//	@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private String attachment;
	/**总计金额*/
	@Excel(name = "总计金额", width = 15)
    @ApiModelProperty(value = "总计金额")
    private Double total;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;
	/**创建人用户*/
    @ApiModelProperty(value = "创建人用户")
    @TableField(fill= FieldFill.INSERT)
    private String createBy;
	/**最后修改人用户*/
    @ApiModelProperty(value = "最后修改人用户")
    @TableField(fill= FieldFill.UPDATE)
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后修改时间")
    @TableField(fill= FieldFill.UPDATE)
    private Date updateTime;
	/**逻辑删除  0 表示未删除  1 表示删除*/
    @TableLogic
//	@Excel(name = "逻辑删除  0 表示未删除  1 表示删除", width = 15)
    @ApiModelProperty(value = "逻辑删除  0 表示未删除  1 表示删除")
    private Integer delFlag;
	/**当前登录用户部门编号*/
    @ApiModelProperty(value = "当前登录用户部门编号")
    private String sysOrgCode;
	/**租户id*/
//	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
}
